<?php
/**
 * @auther:周卫星
 * @date:2019/10/31
 * @fileName:index.blade.php
 * @fileDesc: 商户登录后台首页
 */
?>
@extends('biz.layout.biz_layout')
@section('title', '首页')
@push('css')
@endpush

@push('js')
    <script src="{{ Illuminate\Support\Facades\URL::asset('js/biz/index.js') }}"></script>
@endpush

@section('content')
    <form class="layui-form" action="">
        <div class="layui-form-item">
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-inline">
                <input type="text" name="order_sn" placeholder="请输订单号" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">餐台</label>
            <div class="layui-input-inline">
                <input type="text" name="table_sn" placeholder="请输入餐台"
                       autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="state">
                    <option value="">请选择查看的状态</option>
                    <option value="1">待付款</option>
                    <option value="2">已付款</option>
                    <option value="3">已完成</option>
                    <option value="4">挂账</option>
                    <option value="5">免单</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间</label>
            <div class="layui-input-inline">
                <input type="text" name="start_time" id="startTime" placeholder="请选择开始时间"
                       autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-inline">
                <input type="text" name="end_time" id="endTime" placeholder="请选择结束时间"
                       autocomplete="off" class="layui-input">
            </div>
            <button class="layui-btn" lay-submit lay-filter="search">查询</button>
        </div>
    </form>
    <table id="order" lay-filter="orderList">
        <script id="state" type="text/html">
            @{{# if(d.order_state == 1){ }}
            待付款
            @{{# } if(d.order_state == 2){ }}
            已付款
            @{{# } if(d.order_state == 3){ }}
            已完成
            @{{# } if(d.order_state == 4){ }}
            挂账
            @{{# } if(d.order_state == 5){ }}
            免单
            @{{# } }}
        </script>
        <script id="set" type="text/html">
            <button type="button" class="layui-btn layui-btn-fluid">详情</button>
        </script>
    </table>
@endsection
